package cn.onlineclass.dao;

import cn.onlineclass.entity.OBook;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OBookMapper {

    public int deleteById(Long id);

    public int insertBook(OBook record);

    public int updateById(OBook record);

    public OBook get(long id);

    public int searchTotal(@Param("inuse") boolean inuse, @Param("unitid") long unitid);

    public List<OBook> search(@Param("pageNo") int pageNo, @Param("pageSize") int pageSize,
                              @Param("inuse") boolean inuse, @Param("unitid") Long unitid);
}